home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch17 / 17fig07b.wrl < prev    next >
Text File  |  1996-09-23  |  909b  |  50 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material { }
  8.         texture ImageTexture {
  9.             url "bolt2.jpg"
  10.         }
  11.     }
  12.     geometry IndexedFaceSet {
  13.         coord Coordinate {
  14.             point [
  15.             # Lighting bolt tip
  16.                 0.0  0.0  0.0,
  17.             # Front perimeter
  18.                 5.5  5.0  0.88,
  19.                 4.0  5.5  0.968,
  20.                 7.0  8.0  1.408,
  21.                 4.0  9.0  1.584,
  22.                 1.0  5.0  0.88,
  23.                 2.5  4.5  0.792,
  24.             # Back perimeter
  25.                 5.5  5.0 -0.88,
  26.                 4.0  5.5 -0.968,
  27.                 7.0  8.0 -1.408,
  28.                 4.0  9.0 -1.584,
  29.                 1.0  5.0 -0.88,
  30.                 2.5  4.5 -0.792,
  31.             ]
  32.         }
  33.         coordIndex [
  34.         # Front
  35.             0,  1,  2,  3,  4,  5,  6, -1,
  36.         # Back
  37.             0, 12, 11, 10,  9,  8,  7, -1,
  38.         # Sides
  39.             0,  7,  1, -1,
  40.             1,  7,  8,  2, -1,
  41.             2,  8,  9,  3, -1,
  42.             3,  9, 10,  4, -1,
  43.             4, 10, 11,  5, -1,
  44.             5, 11, 12,  6, -1,
  45.             6, 12,  0, -1,
  46.         ]
  47.         convex FALSE
  48.     }
  49. }
  50.